<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.jimet.user.*"%>
<%@page import="java.util.*"%>
<%@page import="com.jimet.process.*"%>
<%@page import="com.jimet.server.JimetConfiguration"%>

<jsp:useBean id = "headerPageController" 
scope = "application" 
class = "com.jimet.process.HeaderPageController" />  

<jsp:useBean id = "contentPageController" 
scope = "application" 
class = "com.jimet.process.ContentPageController" /> 

<%
	String token 		= request.getParameter(JimetConfiguration.getString("Session.TOKEN_NAME"));
	String strErrPage	= "index.jsp";
	try {
		String strPage 				= request.getParameter("processPage");
		String strPageIx			= request.getParameter("processPageIx");
		String objId				= request.getParameter("objId");
		
		ContentPageParam pageParam	= contentPageController.getContentPage(strPage,strPageIx);
		HeaderPageParam headerParam	= headerPageController.getHeaderPage(strPage,strPageIx);
		
		String strLink	= pageParam.getOnUpdatePageRoot()+"/"+strPageIx+"/"+token;
		session.setAttribute("processParams",objId);
		
		%>
		window.location= '<%=JimetConfiguration.getString("APPLICATION.URL")%><%=strLink%>';
		<%	
	}
	catch(Exception ex){
	%>
		window.location= '<%=request.getContextPath()+"/admin/1/99/"+token%>';
	<%
		return;
	}
%>
